Receiving UK Benefits While You Travel for Hip Replacement: Which Absence Rules Apply to Medical Treatment

Travelling to Turkey for a hip replacement while on PIP, Pension Credit or Universal Credit? How UK benefits rules on time abroad apply to medical treatment.